def sum_double(a, b):
    c = a + b
    if a == b:
        return c*2
    else:
        return c

print sum_double(1, 2)